# Contributor: Justin Berthault <justin.berthault@zaclys.net>
# Maintainer: Justin Berthault <justin.berthault@zaclys.net>
pkgname=py3-pyserial
pkgver=3.4
pkgrel=0
pkgdesc="Multiplatform Serial Port Module for Python"
url="https://github.com/pyserial/pyserial"
arch="all"
license="BSD-3-Clause"
depends="python3"
makedepends="python3-dev"
source="https://files.pythonhosted.org/packages/source/p/pyserial/pyserial-3.4.tar.gz"
builddir="$srcdir/"pyserial-$pkgver

build() {
	python3 setup.py build
}

check() {
	python3 test/run_all_tests.py
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="d71dffc330704e41caac6054adf192bee2f1c119691faf2ea93fe22e8e3ba000dc4a1434293f6f80d05a5577d85b96791f656e28d5c63fb0ce6a6605467a117f  pyserial-3.4.tar.gz"
